<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<title>Dashboard Template for Bootstrap</title>
	<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/type.css" />
	<script src="/xiaomi/Public/js/jquery.min.js"></script>
</head>
<body class="admin_layout">
<header class="admin_header">
	<h2>小米商城后台管理系统</h2> 
  <ul>
		<li>欢迎您：</li>
		<li><a href="/xiaomi/index.php?s=/Admin/Administrator/modifySellerInformation"><?php echo ($_SESSION['admin_name']); ?>&emsp;</a></li>
		<li>|</li>
		<li><a href="/xiaomi/index.php?s=">&emsp;前台首页&emsp;</a></li>
		<li>|</li>
		<li><a href="/xiaomi/index.php?s=/Admin/Administrator/logout"  onClick="return confirm('您确定要退出本站?');">&emsp;退出登录&emsp;</a></li>
	</ul>
  
</header>


<div class="admin_main">
<aside class="sidebar" id="selector">
	<ul>
		<li><a href="/xiaomi/index.php?s=/Admin/Index/index" id="">后台首页</a></li>
		<li><a href="/xiaomi/index.php?s=/Admin/Goodcategory/index" id="">分类管理</a></li>
		<li><a href="/xiaomi/index.php?s=/Admin/Goodattribute/checkGoodAttribute" id="">商品属性</a></li>
		<li><a href="/xiaomi/index.php?s=/Admin/Goods/checkGoods" id="">商品管理</a></li>
		<li><a href="/xiaomi/index.php?s=/Admin/Goods/recycleIndex" id="">下架商品</a></li>
		<li><a href="/xiaomi/index.php?s=/Admin/Order/index" id="">订单管理</a></li>
		<li><a href="/xiaomi/index.php?s=/Admin/Orderdetail/index" id="">评论管理</a></li>
	<li><a href="/xiaomi/index.php?s=/Admin/User/index" id="">顾客管理</a></li>
</ul>
</aside>
<section class="admin_section">
	<div>
	<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>goods add</title>
<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/type.css" />
<link rel="stylesheet" type="text/css" href="/xiaomi/Public/css/tab.css" />
<script type="text/javascript" src="/xiaomi/Public/js/jquery.min.js"></script>


</head>
<body>

<table class="classify_table1">
	<tr>
		<td><span class="classify_table_title">订单信息</span> <span
			class="classify_table_button">
			<button><a href="/xiaomi/index.php?s=/Admin/Order/index">返回</a></button>
		</span> <span class="classify_table_button">
	</tr>
	<tr>
		<td>
		<div class="goods_add_section">
		<ul id="tabs">
			<li><a href="#" title="tab1">顾客资料</a></li>
			<li><a href="#" title="tab2">发送地</a></li>
			<li><a href="#" title="tab3">目的地</a></li>
			<li><a href="#" title="tab4">清单</a></li>
			<li><a href="#" title="tab5">合计</a></li>
		</ul>

		<div id="content">
		<hr>
		<div id="tab1" class="tab ff"><span>顾客编号：<?php echo ($userdata['UserId']); ?></span><br>
		<span>顾客名称：<?php echo ($userdata['UserName']); ?></span><br>
		<span>顾客邮箱：<?php echo ($userdata['Email']); ?></span><br>
		</div>

		<div id="tab2" class="tab ff"><span>发送地址：<?php echo ($orderdata['ExportAddress']); ?></span><br>
		<span>发送人：<?php echo ($orderdata['SendName']); ?></span><br>
		<span>发货电话：<?php echo ($orderdata['SendPhone']); ?></span><br>
		</div>
		<div id="tab3" class="tab ff"><span>收货地址：<?php echo ($orderdata['ImportAddress']); ?></span><br>
		<span>收货人：<?php echo ($orderdata['PickName']); ?></span><br>
		<span>收货电话：<?php echo ($orderdata['PickPhone']); ?></span></div>
		<div id="tab4" class="ff"><span id="ff">
		<table class="goods_add_table">
			<tr>
				<td class="classify_thead_title">商品编号</td>
				<td class="classify_thead_title">商品名称</td>
				<td class="classify_thead_title">商品颜色</td>
				<td class="classify_thead_title">商品型号</td>
				<td class="classify_thead_title">单价</td>
				<td class="classify_thead_title">数量</td>
			</tr>
			<?php if(is_array($orderdetaildata)): foreach($orderdetaildata as $key=>$v): ?><tr>
				<td class="classify_tbody"><?php echo ($v['GoodId']); ?></td>
				<td class="classify_tbody"><?php echo ($v['GoodName']); ?></td>
				<td class="classify_tbody"><?php echo ($v['Color']); ?></td>
				<td class="classify_tbody"><?php echo ($v['Version']); ?></td>
				<td class="classify_tbody"><?php echo ($v['Price']); ?></td>
				<td class="classify_tbody"><?php echo ($v['GoodCount']); ?></td>
			</tr><?php endforeach; endif; ?>
		</table>
		</span></div>
		<div id="tab5" class="tab ff"><span>状态：<?php if(($orderdata["OrderStatus"]) == "0"): ?>待付款<?php endif; ?>
		<?php if(($orderdata["OrderStatus"]) == "2"): ?>待收货<?php endif; ?>
		<?php if(($orderdata["OrderStatus"]) == "3"): ?>待评价<?php endif; ?>
		<?php if(($orderdata["OrderStatus"]) == "4"): ?>已完成<?php endif; ?>
		</span><br>
		<span>订单附言：<?php echo ($orderdata['Remark']); ?></span><br>
		<span>合计总额：<?php echo ($orderdata['TotalMoney']); ?></span><br>
		</div>
		</div>
		</div>
		</td>
	</tr>
</table>
</div>


<script>
		$(function() {
			$("#content div").hide(); // Initially hide all content
			$("#tabs link:first").attr("id","current"); // Activate first tab
			$("#content div:first").fadeIn(); // Show first tab content
		    $('#tabs a').click(function(e) {
		        e.preventDefault();        
		        $("#content div.ff").hide(); //Hide all content
		        $("#tabs li").attr("id",""); //Reset id's
		        $(this).parent().attr("id","current"); // Activate this
		        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab
		    });
		});

	</script>

</body>
</html>
	</div>
</section>
</div>
</body>
</html>